//
// Created by syshen on 2021/6/28.
//

#include<opencv2/opencv.hpp>
#include "OCR.h"

int main(int argc, char *argv[]){
    OCR ocr(0, "DBnet", "CrnnPaddle");
    ocr.init("/home/ssy/Downloads/general-ocr/models/TextDetector_dynamic.pth", "/home/ssy/Downloads/general-ocr/models/TextClassifier.pth", "/home/ssy/Downloads/general-ocr/models/TextRecognizer_dynamic.pth");
    cv::Mat img = cv::imread("../3.jpg");
    std::vector<data> results = ocr.recognize(img);
    return 0;
}